<header>
    <div class="title">
        <a href="">Cursos</a><span> > </span><strong>Actualizar datos privados del curso</strong>
    </div>
    <div class="shortcuts">
        <a href=""></a>
    </div>
    <div class="help">
        <a href="">Ayuda</a>
    </div>
</header>
<div class="sidebar">
    <div id="group-update" class="content">
        <h3>Actualizar datos privados del curso</h3>
        <?php if (!empty($validacion)) { ?>
        <div class="alert alert-error">
            <span class="icon block"></span>
            <strong>Se han encontrado errores:</strong>
            <ul>
                <?php foreach ($validacion as $item_fail) { ?>
                    <li><label for="group-update-form-<?php echo $item_fail['item']; ?>"><?php echo $item_fail['message']; ?></label></li>
                <?php } ?>
            </ul>
        </div>
        <?php } ?>
        <form action="#" method="post" enctype="multipart/form-data">
            <input name="form-action" type="hidden" value="update-group" />
            <div class="form-fields">
                <label>
                    <span class="name">Nombre:</span>
                    <input type="text" id="group-update-form-nombre" name="nombre" value="<?php if ($group->get('grupos','nombre')) echo html_entity_decode($group->get('grupos','nombre')); ?>" placeholder="Ingrese el nombre aqui" autofocus />
                    <span class="help" data-text="Depending on project settings weekend may be included in due date calculation"></span>
                </label>
                <label>
                    <span class="name">Descripcion:</span>
                    <textarea name='descripcion'><?php if ($group->get('grupos','descripcion')) echo html_entity_decode($group->get('grupos','descripcion')); ?> </textarea>
                    <span class="help" data-text="Depending on project settings weekend may be included in due date calculation"></span>
                </label>
                <label>
                    <span class="name">Estado:</span>
                    <select name="estado">
                        <option value='1' <?php if($group->get('grupos','estado') == 1) echo 'selected'; ?>>Activo</option>
                        <option value='2' <?php if($group->get('grupos','estado') == 2) echo 'selected'; ?>>Inactivo</option>
                    </select>
                    <span class="help" data-text="Depending on project settings weekend may be included in due date calculation"></span>
                </label>
            </div>
            <div class="form-buttons">
                <button type="submit" class="button important blue"><span class="icon check"></span> Guardar</button>
                <a class="button important red" href="<?php echo $host . 'groups/'; ?>">Cancelar</a>
                <a class="button" href="<?php echo $host . 'groups/'; ?>"><span class="icon list"></span> Volver al listado</a>
            </div>
        </form>
    </div>
</div>